Error processing SSI file
LEADTOOLS Caching (Leadtools.Caching assembly)

Show in webframe

AddOrGetExisting<T>(CacheItem<T>,CacheItemPolicy) Method






Cache item to add.
Expiration policy for the item.
Adds a cache entry into the cache, and returns an existing cache entry with a matching key.
Syntax
public override CacheItem<T> AddOrGetExisting<T>( 
   CacheItem<T> value,
   CacheItemPolicy policy
)
'Declaration
 
Public Overloads Overrides Function AddOrGetExisting(Of T)( _
   ByVal value As CacheItem(Of T), _
   ByVal policy As CacheItemPolicy _
) As CacheItem(Of T)
'Usage
 
Dim instance As FileCache
Dim value As CacheItem(Of T)
Dim policy As CacheItemPolicy
Dim value As CacheItem(Of T)
 
value = instance.AddOrGetExisting(Of T)(value, policy)
@Override
public <T> CacheItem<T> addOrGetExisting(CacheItem<T> value, Class<?> classOfT, CacheItemPolicy policy)
            
public:
CacheItem<T^>^ AddOrGetExistinggeneric<typename T>
( 
   CacheItem<T^>^ value,
   CacheItemPolicy^ policy
) override 

Parameters

value
Cache item to add.
policy
Expiration policy for the item.

Type Parameters

T

Return Value

The previous cache entry that matches the specified key, if found. If the cache contains an item with the same key, then it will be returned before it is overwritten. Otherwise, null.
Requirements

Target Platforms

See Also

Reference

FileCache Class
FileCache Members
Overload List

Error processing SSI file
Leadtools.Caching requires a Document or Medical toolkit license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features